home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
winter_challenge.swf
/
scripts
/
DefineSprite_225
/
frame_1
/
PlaceObject2_224_1
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2011-08-19
|
1KB
|
43 lines
onClipEvent(enterFrame){
randomVar = random(50);
if(randomVar >= 40)
{
if(doHoppel_flag != 1)
{
_parent._rotation = random(360);
radian = _parent._rotation * 0.017453292519943295;
doHoppel_flag = 1;
}
}
if(doHoppel_flag == 1 && gothit_flag != 1)
{
doHoppel();
}
if(_parent.hitTest(_root.ATVclip.ATV.chassis) && gothit_flag != 1)
{
this.gotoAndPlay(4);
gothit_flag = 1;
if(_root.redTire_cheat == 0)
{
_parent.vektor = [_root.ATVclip.xspeed * (1 + random(1.5)),_root.ATVclip.yspeed * (1 + random(1.5))];
if(_root.ATVclip.xspeed > 0)
{
_root.ATVclip.xspeed -= _root.ATVclip.xspeed / 2;
}
if(_root.ATVclip.xspeed < 0)
{
_root.ATVclip.xspeed -= _root.ATVclip.xspeed / 2;
}
if(_root.ATVclip.yspeed < 0)
{
_root.ATVclip.yspeed -= _root.ATVclip.yspeed / 2;
}
if(_root.ATVclip.yspeed > 0)
{
_root.ATVclip.yspeed -= _root.ATVclip.yspeed / 2;
}
_root.rabbitKills = _root.rabbitKills + 1;
}
}
}